package com.qy.service.impl;

import com.qy.dao.ChargeMapper;
import com.qy.model.Charge;
import com.qy.service.ChargeService;
import com.qy.base.core.AbstractService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;


/**
 * Created by zaq on 2018/07/10.
 */
@Service
@Transactional
public class ChargeServiceImpl extends AbstractService<Charge> implements ChargeService {
    @Resource
    private ChargeMapper qyChargeMapper;

    @Override
    public List<Charge> selectAllCharge() {
        return qyChargeMapper.selectAllCharge();
    }

    @Override
    public List<Charge> selectChargeById(Charge charge) {
        return qyChargeMapper.selectChargeById(charge);
    }

    @Override
    public List<Map> chargeList(Charge charge) {
        return qyChargeMapper.chargeList(charge);
    }

    @Override
    public void updateCharge(Charge charge) {
        qyChargeMapper.updateCharge(charge);
    }

    @Override
    public void deleteCharge(Charge charge) {
        qyChargeMapper.deleteCharge(charge);
    }

    @Override
    public void chargeState(Charge charge) {
        qyChargeMapper.chargeState(charge);
    }

    @Override
    public List<Charge>  seeCharge(Integer id) {
        return qyChargeMapper.seeCharge(id);
    }

    @Override
    public List<Charge> selectChargeByName(Charge charge) {
        return qyChargeMapper.selectChargeByName(charge);
    }

    @Override
    public List<Map> selectVagueChargeList(String unit_name) {
        return qyChargeMapper.selectVagueChargeList(unit_name);
    }

    @Override
    public List<Charge> selectChargeList() {
        return qyChargeMapper.selectChargeList();
    }

    @Override
    public List<Map<String,Object>> selectByClueId(Integer clue_id) {
        return qyChargeMapper.selectByClueId(clue_id);
    }
}
